<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>梦幻西游数字资产管理系统 - 首页</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }
        
        .container {
            display: flex;
            min-height: 100vh;
        }
        
        /* 侧边栏 */
        .sidebar {
            width: 220px;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            padding: 20px 0;
        }
        
        .logo {
            text-align: center;
            padding: 20px;
            font-size: 20px;
            font-weight: bold;
            color: #667eea;
            border-bottom: 2px solid #f0f0f0;
            margin-bottom: 20px;
        }
        
        .nav-menu {
            list-style: none;
        }
        
        .nav-item {
            padding: 15px 30px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            color: #333;
        }
        
        .nav-item:hover {
            background: #f5f5f5;
            border-left: 4px solid #667eea;
            padding-left: 26px;
        }
        
        .nav-item.active {
            background: #667eea;
            color: white;
            border-left: 4px solid #764ba2;
        }
        
        .nav-icon {
            margin-right: 10px;
            font-size: 18px;
        }
        
        /* 主内容区 */
        .main-content {
            flex: 1;
            padding: 30px;
            overflow-y: auto;
        }
        
        .header {
            background: white;
            padding: 20px 30px;
            border-radius: 10px;
            margin-bottom: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .header h1 {
            color: #333;
            font-size: 24px;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #667eea;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        
        /* 统计卡片 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        }
        
        .stat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .stat-title {
            color: #666;
            font-size: 14px;
        }
        
        .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }
        
        .stat-icon.blue { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
        .stat-icon.green { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; }
        .stat-icon.orange { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; }
        .stat-icon.purple { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); color: white; }
        
        .stat-value {
            font-size: 32px;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }
        
        .stat-change {
            font-size: 12px;
            color: #52c41a;
        }
        
        /* 内容区块 */
        .content-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .content-card {
            background: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .card-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        /* 今日任务列表 */
        .task-list {
            list-style: none;
        }
        
        .task-item {
            display: flex;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.3s;
        }
        
        .task-item:hover {
            background: #f9f9f9;
        }
        
        .task-checkbox {
            width: 20px;
            height: 20px;
            border: 2px solid #ddd;
            border-radius: 4px;
            margin-right: 15px;
            cursor: pointer;
            position: relative;
        }
        
        .task-checkbox.checked {
            background: #52c41a;
            border-color: #52c41a;
        }
        
        .task-checkbox.checked::after {
            content: '✓';
            position: absolute;
            color: white;
            font-size: 14px;
            top: -2px;
            left: 3px;
        }
        
        .task-info {
            flex: 1;
        }
        
        .task-name {
            font-weight: 500;
            color: #333;
            margin-bottom: 5px;
        }
        
        .task-meta {
            font-size: 12px;
            color: #999;
        }
        
        .task-progress {
            min-width: 80px;
            text-align: right;
        }
        
        .progress-bar {
            width: 60px;
            height: 6px;
            background: #f0f0f0;
            border-radius: 3px;
            overflow: hidden;
            margin-left: auto;
            margin-bottom: 5px;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            transition: width 0.3s;
        }
        
        .progress-text {
            font-size: 12px;
            color: #666;
        }
        
        /* 快捷操作 */
        .quick-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        
        .action-btn {
            padding: 15px;
            border: 2px dashed #ddd;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            color: #666;
        }
        
        .action-btn:hover {
            border-color: #667eea;
            background: #f5f7ff;
            color: #667eea;
        }
        
        .action-icon {
            font-size: 32px;
            margin-bottom: 8px;
        }
        
        /* 通知列表 */
        .notification-list {
            list-style: none;
        }
        
        .notification-item {
            padding: 12px;
            border-left: 3px solid #667eea;
            background: #f9f9f9;
            margin-bottom: 10px;
            border-radius: 4px;
            font-size: 14px;
            color: #666;
        }
        
        .notification-item.warning {
            border-left-color: #faad14;
            background: #fffbf0;
        }
        
        .notification-item.error {
            border-left-color: #f5222d;
            background: #fff1f0;
        }
        
        .notification-time {
            font-size: 12px;
            color: #999;
            margin-top: 5px;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 侧边栏 -->
        <div class="sidebar">
            <div class="logo">⚔️ 梦幻资管系统</div>
            <ul class="nav-menu">
                <li class="nav-item active">
                    <span class="nav-icon">🏠</span>
                    <span>首页仪表盘</span>
                </li>
                <li class="nav-item">
                    <span class="nav-icon">👤</span>
                    <span>账号管理</span>
                </li>
                <li class="nav-item">
                    <span class="nav-icon">🎮</span>
                    <span>角色管理</span>
                </li>
                <li class="nav-item">
                    <span class="nav-icon">📋</span>
                    <span>任务中心</span>
                </li>
                <li class="nav-item">
                    <span class="nav-icon">💰</span>
                    <span>资产管理</span>
                </li>
                <li class="nav-item">
                    <span class="nav-icon">📊</span>
                    <span>数据统计</span>
                </li>
                <li class="nav-item">
                    <span class="nav-icon">⚙️</span>
                    <span>系统设置</span>
                </li>
            </ul>
        </div>
        
        <!-- 主内容区 -->
        <div class="main-content">
            <!-- 头部 -->
            <div class="header">
                <h1>📊 今日概览</h1>
                <div class="user-info">
                    <span>📅 2025年10月3日 星期五</span>
                    <div class="user-avatar">管</div>
                    <span>管理员</span>
                </div>
            </div>
            
            <!-- 统计卡片 -->
            <div class="stats-grid">
                <div class="stat-card">
                    <div class="stat-header">
                        <div>
                            <div class="stat-title">总账号数</div>
                            <div class="stat-value">12</div>
                            <div class="stat-change">↑ 较上月 +2</div>
                        </div>
                        <div class="stat-icon blue">👤</div>
                    </div>
                </div>
                
                <div class="stat-card">
                    <div class="stat-header">
                        <div>
                            <div class="stat-title">总角色数</div>
                            <div class="stat-value">45</div>
                            <div class="stat-change">↑ 活跃角色 38</div>
                        </div>
                        <div class="stat-icon green">🎮</div>
                    </div>
                </div>
                
                <div class="stat-card">
                    <div class="stat-header">
                        <div>
                            <div class="stat-title">今日任务完成率</div>
                            <div class="stat-value">68%</div>
                            <div class="stat-change">完成 92/135 项</div>
                        </div>
                        <div class="stat-icon orange">📋</div>
                    </div>
                </div>
                
                <div class="stat-card">
                    <div class="stat-header">
                        <div>
                            <div class="stat-title">本周收益</div>
                            <div class="stat-value">2.8亿</div>
                            <div class="stat-change">↑ 较上周 +15%</div>
                        </div>
                        <div class="stat-icon purple">💰</div>
                    </div>
                </div>
            </div>
            
            <!-- 内容区块 -->
            <div class="content-grid">
                <!-- 今日任务 -->
                <div class="content-card">
                    <div class="card-title">📋 今日待完成任务</div>
                    <ul class="task-list">
                        <li class="task-item">
                            <div class="task-checkbox checked"></div>
                            <div class="task-info">
                                <div class="task-name">剑侠客 - 师门任务</div>
                                <div class="task-meta">账号：主账号001 | 紫禁城服务器</div>
                            </div>
                            <div class="task-progress">
                                <div class="progress-bar">
                                    <div class="progress-fill" style="width: 100%"></div>
                                </div>
                                <div class="progress-text">20/20</div>
                            </div>
                        </li>
                        <li class="task-item">
                            <div class="task-checkbox"></div>
                            <div class="task-info">
                                <div class="task-name">龙太子 - 抓鬼任务</div>
                                <div class="task-meta">账号：主账号001 | 紫禁城服务器</div>
                            </div>
                            <div class="task-progress">
                                <div class="progress-bar">
                                    <div class="progress-fill" style="width: 60%"></div>
                                </div>
                                <div class="progress-text">6/10</div>
                            </div>
                        </li>
                        <li class="task-item">
                            <div class="task-checkbox"></div>
                            <div class="task-info">
                                <div class="task-name">普陀山 - 封妖任务</div>
                                <div class="task-meta">账号：小号002 | 紫禁城服务器</div>
                            </div>
                            <div class="task-progress">
                                <div class="progress-bar">
                                    <div class="progress-fill" style="width: 0%"></div>
                                </div>
                                <div class="progress-text">0/10</div>
                            </div>
                        </li>
                        <li class="task-item">
                            <div class="task-checkbox checked"></div>
                            <div class="task-info">
                                <div class="task-name">剑侠客 - 房屋休息</div>
                                <div class="task-meta">账号：主账号001 | 紫禁城服务器</div>
                            </div>
                            <div class="task-progress">
                                <div class="progress-bar">
                                    <div class="progress-fill" style="width: 100%"></div>
                                </div>
                                <div class="progress-text">✓</div>
                            </div>
                        </li>
                        <li class="task-item">
                            <div class="task-checkbox"></div>
                            <div class="task-info">
                                <div class="task-name">地府 - 帮派任务</div>
                                <div class="task-meta">账号：商人号003 | 将军阁服务器</div>
                            </div>
                            <div class="task-progress">
                                <div class="progress-bar">
                                    <div class="progress-fill" style="width: 30%"></div>
                                </div>
                                <div class="progress-text">3/10</div>
                            </div>
                        </li>
                    </ul>
                </div>
                
                <!-- 侧边栏 -->
                <div>
                    <!-- 快捷操作 -->
                    <div class="content-card" style="margin-bottom: 20px;">
                        <div class="card-title">⚡ 快捷操作</div>
                        <div class="quick-actions">
                            <div class="action-btn">
                                <div class="action-icon">➕</div>
                                <div>添加账号</div>
                            </div>
                            <div class="action-btn">
                                <div class="action-icon">🎮</div>
                                <div>添加角色</div>
                            </div>
                            <div class="action-btn">
                                <div class="action-icon">✓</div>
                                <div>批量打卡</div>
                            </div>
                            <div class="action-btn">
                                <div class="action-icon">📊</div>
                                <div>查看报表</div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 系统通知 -->
                    <div class="content-card">
                        <div class="card-title">🔔 系统提醒</div>
                        <ul class="notification-list">
                            <li class="notification-item warning">
                                账号"主账号001"点卡将于3天后到期
                                <div class="notification-time">2小时前</div>
                            </li>
                            <li class="notification-item">
                                今日还有43个任务未完成
                                <div class="notification-time">刚刚</div>
                            </li>
                            <li class="notification-item">
                                本周任务完成率达标，继续保持！
                                <div class="notification-time">1天前</div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script>
        // 简单的交互效果
        document.querySelectorAll('.nav-item').forEach((item, index) => {
            item.addEventListener('click', () => {
                const pages = ['index.html', 'accounts.html', 'roles.html', 'tasks.html', 'assets.html', 'statistics.html', 'settings.html'];
                if (pages[index]) {
                    window.location.href = pages[index];
                }
            });
        });
        
        document.querySelectorAll('.task-checkbox:not(.checked)').forEach(checkbox => {
            checkbox.addEventListener('click', () => {
                checkbox.classList.add('checked');
            });
        });
    </script>
</body>
</html>
